package com.aibili.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "t_report_info")
public class ReportInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8691879989476977351L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", length = 11, nullable = false)
	private long id;
	
	//被举报人的id
	@Column(name = "user_id")
	private long user_id;
	
	//举报人的id
	@Column(name = "mine_id")
	private long mine_id;
	
	//举报内容
	@Column(name = "content")
	private String content;
	
	@Column(name = "addtime")
	private Date addtime;
	
	@Transient
	private UserInfo user;//被举报人
	
	@Transient
	private UserInfo to_user;//举报人

	public UserInfo getUser() {
		return user;
	}

	public void setUser(UserInfo user) {
		this.user = user;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUser_id() {
		return user_id;
	}

	public void setUser_id(long user_id) {
		this.user_id = user_id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getAddtime() {
		return addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public long getMine_id() {
		return mine_id;
	}

	public void setMine_id(long mine_id) {
		this.mine_id = mine_id;
	}

	public UserInfo getTo_user() {
		return to_user;
	}

	public void setTo_user(UserInfo to_user) {
		this.to_user = to_user;
	} 
	
}
